package services

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

/**
 * Author:齐全霞
 * Description: Servics的路由
 * Date:2025年9月27日
 */

type ServicesRoute struct {
}

func (*ServicesRoute) InitServicesRouter(r *gin.Engine) {
	group := r.Group("/service")
	group.GET("/:namespace/:name", service.ApiGroupApp.GetServicesDetail)
	group.GET("/:namespace/list", service.ApiGroupApp.GetServicesList)
	group.POST("/:namespace/:name", service.ApiGroupApp.CreateService)
	group.DELETE("/:namespace/:name", service.ApiGroupApp.DeleteService)
	group.PUT("/:namespace/:name", service.ApiGroupApp.UpdateService)
	group.DELETE("/:namespace", service.ApiGroupApp.DeleteMultipleServices)
	group.DELETE("/:namespace/label", service.ApiGroupApp.DeleteServiceByLabel)

}
